/**
 * Created with IntelliJ IDEA.
 * User: Katerina
 * Date: 21.01.13
 * Time: 23:47
 * To change this template use File | Settings | File Templates.
 */
package ru.gameChangers.homework.businessModels {
import flash.display.Sprite;
import flash.text.TextField;
import flash.text.TextFormat;

import ru.gameChangers.homework.businessModels.ConfigurationConstants;

public class Letter2LetterLogo extends Sprite {
    public function Letter2LetterLogo(text:String) {
        this.graphics.drawRect(x, y, 30, 30);

        var t:TextField = new TextField();
        t.text = text;
        t.defaultTextFormat = new TextFormat(ConfigurationConstants.FONT, 18, ConfigurationConstants.CONTENT_TEXT_COLOR, true);

        t.width = 30;
        t.height = 20;
        addChild(t);
    }
}
}
